<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('salesman/index')}">业务员列表</a></li>
			<li class="active"><a href="{:url('salesman/add')}">新增业务员</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('salesman/add')}">
			<div class="form-group" id="fempnumber">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>工号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="fempnumber" value="">
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>组织</label>
				<div class="col-md-6 col-sm-10">
					<select name="factory_id" class="form-control">
						<option value="">请选择</option>
						<foreach name="factory_list" item="vo">
							<option value="{$vo.id}">{$vo.fname}</option>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>业务员类型</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline">
						<input value="1" type="radio" name="type">内部业务员
					</label>
					<label class="radio-inline">
						<input value="2" type="radio" name="type">经销商
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>价格影响因素</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="yinsu" value="">
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>预售功能</label>
				<div class="col-md-6 col-sm-10">
					<label class="checkbox-inline">
						<input value="1" type="checkbox" name="yushou">有
					</label>
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>订单审批</label>
				<div class="col-md-6 col-sm-10">
					<label class="radio-inline">
						<input value="1" type="radio" name="approval">是
					</label>
					<label class="radio-inline">
						<input value="0" type="radio" name="approval" checked>否
					</label>
				</div>
			</div>
			<div class="form-group" id="factory_id">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>发货工厂</label>
				<div class="col-md-6 col-sm-10">
					<foreach name="factory_list" item="vo">
						<if $vo.status == 1>
							<label class="checkbox-inline">
								<input value="{$vo.id}" type="checkbox" name="out_ids[]">{$vo.fname}
							</label>
						</if>
					</foreach>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="user_id" value="{:input('id')}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
					<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>